package boss.portal.service;

import boss.portal.entity.logg.UserOptLoggerEntity;
import org.springframework.data.domain.Page;

import java.util.Iterator;
import java.util.List;

public interface IUserOptLogService {

    String USER_OPT_LOGGER = "user_logger";

    void createIndex();

    void deleteIndex(String index);

    boolean existIndex(String index);

    void save(UserOptLoggerEntity docBean);

    void saveAll(List<UserOptLoggerEntity> list);

    Iterator<UserOptLoggerEntity> findAll();

    Page<UserOptLoggerEntity> findByContent(String content);

    Page<UserOptLoggerEntity> findByFirmId(String firmId);

    Page<UserOptLoggerEntity> findByOperator(String operator);

    Page<UserOptLoggerEntity> findByOptModule(String optModule);

    Page<UserOptLoggerEntity> findByOptType(String optType);

    Page<UserOptLoggerEntity> query(String key);

}
